<template>
  <div class="login-con">
    <span class="back" @click="$router.go(-1)"></span>
    <img src="./img/logo.png" class="login-logo">
    <h1 class="reset-title" v-if="$route.name === 'reset-pwd'">重置密码</h1>
    <div class="login-nav" v-else>
      <router-link :to="{name: 'sign-in', query: {redirect: $route.query.redirect}}">登录</router-link>
      <router-link :to="{name: 'sign-up', query: {redirect: $route.query.redirect}}">注册</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>
<script>
  export default {
    created () {
    }
  }
</script>
<style lang="scss">
  @import "./login";
</style>
